  const user = {
    state: {
      isLogin: false,
      userInfo: {},
      seatKf:[]
      
    },
    actions: {
      updateLogin ({ commit },userInfo) {
        websocket.usertel = userInfo.usertel
        commit('updateLogin',userInfo)
      },
      outLogin ({ commit },userInfo) {
        commit('outLogin')
      }
    },
    mutations: {
      updateLogin(state,userInfo) {
        state.isLogin = true
        state.userInfo = userInfo
      },
      outLogin(state) {
        state.isLogin = false
        state.userInfo = ""
      }
    },
    getters: {
      getIsLogin: state => {
        return state.isLogin
      },
      getUserInfo: state => {
        return state.userInfo
      },
    }
  }
  export default user
